package com.hboxs.asl.controller;

import com.hboxs.asl.controller.asl.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 不要改这个control的映射名 : /
 */
@Controller("indexController")
@RequestMapping("/")
public class IndexContorller extends BaseController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String root() {
        return "redirect:/index.htm";
    }

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public String index(ModelMap model) {
        return "/app/index";
    }
}